/**
 * @author taowei20061122@163.com
 *
 * 2013-6-10 下午08:32:38
 */
package study.designpattern.observer.impl;

import study.designpattern.observer.WaterQualityObserver;
import study.designpattern.observer.WaterQualitySubject;

/**
 * 具体的观察者实现
 * 
 * @author taowei20061122@163.com
 *
 * 2013-6-10 下午08:32:38
 */
public class Watcher implements WaterQualityObserver {
	/**
	 * 职务
	 */
	private String job;

	public void update(WaterQualitySubject subject) {
		// 采用拉模式
		System.out.println(job+"获取到通知，当前污染级别为："+subject.getPolluteLevel());
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getJob() {
		return this.job;
	}

}
